<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>Detail van de reis</title>

        <h:outputStylesheet library="css" name="styles/style.css"  />
        <link rel="stylesheet" type="text/css" href="styles/style.css" />
    </h:head>
    <body>
        <div>Gevonden Reizen</div>
        <div>


            <h:form>
                <h:dataTable id="gaNaarDetailPagina" value="#{userpagesController.reizenByPeriode}" var="reis">
                    <h:column>
                        <f:facet name="header">
                            <h:outputText value="id" />
                            <h:outputText value="Maxplaatsen" />
                        </f:facet> 
                        <h:outputText value="#{reis.id}" />
                        <h:outputText value="#{reis.maxPlaatsen}" />
                    </h:column>
                    <h:column>
                        <h:commandButton action="#{userpagesController.gaNaarDetailPagina}" value="detailpagina">
                        <f:param name="reisID" value="#{reis.id}"/>
                     </h:commandButton>
                    </h:column>
                </h:dataTable>
               
            </h:form>


        </div>
    </body>
</html>
